<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
    pageEncoding="ISO-8859-1"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<%@taglib prefix="form" uri="http://www.springframework.org/tags/form" %>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>Register Page here</title>
 <style type="text/css">
 .error {
 color: red;
 }
 
 </style>
</head>
<body>

<h1>Register Page...</h1>
<br>
<br>
<h4>Welcome ${status}</h4>

<form:form action="Register.html" commandName="register">
Enter ID:<form:input path="id" /><form:errors path="id" cssClass="error"/><br>
Enter name:<form:input path="name" /><form:errors path="name" cssClass="error"/><br>
Enter Password :<form:password path="password"/><form:errors path="password" cssClass="error"/><br>
Enter City :<form:input path="city"/><form:errors path="city" cssClass="error"/><br>
Enter Contact Number :<form:input path="contact"/><form:errors path="contact" cssClass="error"/><br>
<input type="submit" value="Register">
</form:form>

</body>
</html>